package org.dsc.amafinder.dialog;

import android.app.Dialog;
import android.app.DialogFragment;
import android.app.ProgressDialog;
import android.os.Bundle;

public class ProgressDialogFragment extends DialogFragment {

   public static ProgressDialogFragment newInstance() {
      return new ProgressDialogFragment();
   }

   @Override
   public Dialog onCreateDialog(Bundle savedInstanceState) {
      final ProgressDialog dialog = new ProgressDialog(getActivity());
      dialog.setMessage("Cerrando aplicacion...");
      dialog.setIndeterminate(true);
      return dialog;
   }
}
